/*
 * Copyright (c) 2001 Boris Pruessmann and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Common Public License v0.5
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v05.html
 * 
 * Contributors:
 *    Boris Pruessmann - Initial implementation.
 */
package net.sourceforge.perforce.ui.model;

import net.sourceforge.perforce.core.resources.RemoteFile;
import org.eclipse.ui.model.WorkbenchContentProvider;

/**
  * @version 	1.0
  * @author		<a href="mailto:bpruessmann@users.sourceforge.net">Boris Pruessmann</a>
  */
public class RemoteContentProvider extends WorkbenchContentProvider
{
	/*
	 * @see ITreeContentProvider#hasChildren(Object)
	 */
	public boolean hasChildren(Object element)
	{
		if (element == null)
			return false;
		
		if (element instanceof RemoteFile)
			return false;
		
		return true;			
	}
}
